package com.example.j202411.views.Activity;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.bumptech.glide.Glide;
import com.example.j202411.R;

public class ConstellationDetailActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_constellationdetail);

        ImageView imageViewConstellation = findViewById(R.id.imageView_constellation);
        TextView textViewConstellationInfo = findViewById(R.id.textView_constellation_info);

        String constellationImage = getIntent().getStringExtra("constellationImage");
        String constellationInfo = getIntent().getStringExtra("constellationInfo");

        Glide.with(this).load(constellationImage).into(imageViewConstellation);
        textViewConstellationInfo.setText(constellationInfo);
    }
}